import {defineStore} from "pinia";
import {ref} from "vue";

export const useAppStore = defineStore('app', () => {
    let appInfo = ref({})
    let mainContainerLoading = ref(false);

    function setAppInfo(app) {
        appInfo.value = app
    }

    function resetMainContainerLoading(flag) {
        mainContainerLoading.value = flag
    }
    return { appInfo, setAppInfo, mainContainerLoading, resetMainContainerLoading }
})